<?php

namespace common\entities\myhtsq;

use Yii;

/**
 * This is the model class for table "myscrm_contract_additional".
 *
 * @property string $additional_id
 * @property string $contract_id
 * @property string $violated_category_id
 * @property string $violated_littler_category_id
 * @property string $violated_content
 * @property string $approval_by
 * @property string $approval_date
 * @property string $approval_opinion
 * @property string $solution_content
 * @property string $created_on
 * @property string $created_by
 * @property string $modified_on
 * @property string $modified_by
 */
class ContractAdditionalEntity extends \common\entities\ConfigEntity
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'myscrm_contract_additional';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['additional_id'], 'required'],
            [['violated_content', 'approval_opinion', 'solution_content'], 'string'],
            [['approval_date', 'created_on', 'modified_on'], 'safe'],
            [['additional_id', 'contract_id', 'violated_category_id', 'violated_littler_category_id', 'approval_by', 'created_by', 'modified_by'], 'string', 'max' => 36]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'additional_id' => '合同附加信息ID',
            'contract_id' => '合同ID',
            'violated_category_id' => '违规大类ID',
            'violated_littler_category_id' => '违规小类ID',
            'violated_content' => '违规内容',
            'approval_by' => '审批人ID',
            'approval_date' => '审批时间',
            'approval_opinion' => '审批意见',
            'solution_content' => '变通方案',
            'created_on' => '创建时间',
            'created_by' => '创建人',
            'modified_on' => '修改时间',
            'modified_by' => '修改人',
        ];
    }
}
